package com.woniuxy.qiantai.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.qiantai.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.qiantai.vo.OrderVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author firstGroup
 * @since 2023-02-22 09:45:58
 */
public interface OrderService extends IService<Order> {


    //张朝朝：延迟消息队列发送信息
    public void sendMessageToDelayQueue(Integer orderId);


    //张朝朝：修改订单状态
    void updateOrderState(Integer orderId,Integer state);

    void createOrder(Integer[] productIds, Integer addressId, Integer userId);
    //张朝朝：商家生产者将消息发送到普通交换机
    void expenditure (Integer orderId);

    List<OrderVo> selectOrderVo(Integer userId);

    Page<OrderVo> pageOrderVolist(Integer id, Integer pageSize, Integer currentPage);

    Order selectOrderInfo(Integer orderId);
    void sendOrderEmail(Integer orderId);
}
